package cn.ilikes.tools.nosql.test.jpa.pojos;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;

@Entity
@Table(name = "pe_employee_group_peplan_map", schema = "ilikes")
public class EmployeeGroupPlanMap {

	@Id
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "id", store = IndexColumn.Store.yes)
	private Integer uuid;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "pe_plpan_id")
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "peplpanId", store = IndexColumn.Store.no)
	private PePlpan PePlpan;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "employee_group_id")
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "employeeGroupId", store = IndexColumn.Store.no)
	private EmployeeGroup employeeGroup;

	public Integer getUuid() {
		return uuid;
	}

	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}

	public PePlpan getPePlpan() {
		return PePlpan;
	}

	public void setPePlpan(PePlpan pePlpan) {
		PePlpan = pePlpan;
	}

	public EmployeeGroup getEmployeeGroup() {
		return employeeGroup;
	}

	public void setEmployeeGroup(EmployeeGroup employeeGroup) {
		this.employeeGroup = employeeGroup;
	}

}